<%@ page language="java" contentType="text/html; charset=UTF-8"
	import="ecs.dogear.app.*,java.util.*" pageEncoding="UTF-8"%>
<%
	HashMap<Integer,User> map = (HashMap)CommenterDatabase.getAllUsers();
    StringBuilder sb = new StringBuilder("[");
    if(map.size() > 0){
	    for(Iterator iter = map.keySet().iterator();iter.hasNext();){
	    	int id = (Integer)iter.next();
	    	String name = map.get(id).getName();
	    	sb.append("{id:'");
	    	sb.append(id);
	    	sb.append("',name:'");
	    	sb.append(name);
	    	sb.append("'},");
	    }
	    sb.deleteCharAt(sb.length()-1);
    }
    sb.append("]");
    out.println(sb.toString());
%>